﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PersonalAlbum.Caching;

namespace UnitTests
{
    class DemoCacheService : ICacheService
    {
        #region ICacheService Members
        private Dictionary<string, object> _items;
        public DemoCacheService()
        {
            _items = new Dictionary<string, object>();
        }
        public object GetData(string key)
        {
            return _items[key];
        }

        public void InsertData(string key, object value)
        {
            _items.Add(key, value);
        }

        public void RemoveItem(string key)
        {
            _items.Remove(key);
        }

        #endregion
    }
}
